<template>
	<view class="wrap-empty flex column align-center">
		<image :src="getImageURL(img)" class="file" v-if="img !== ''"></image>

		<view class="title f-28">{{ text }}</view>
	</view>
</template>

<script>
	export default {
		props: {
			text: {
				type: String,
				default: "暂无更多内容~",
			},
			img: {
				type: String,
				default: "common/noData.png",
			},
		},
	};
</script>

<style lang="scss" scoped>
	.wrap-empty {
		padding: 30rpx;
		box-sizing: border-box;
		width: 100%;
		overflow: hidden;

		.file {
			width: 460rpx;
			height: 285rpx;
			margin-bottom: 30rpx;
		}

		.title {
			color: $sub-title-color;
		}
	}
</style>
